require
		.config({
			urlArgs : "r=" + (new Date()).getTime(),
			baseUrl : './',
			paths : {
				'domReady' : '../../../assets/require/domReady',
				'text' : '../../../assets/require/text',
				'css' : '../../../assets/require/css.min',
				'jquery' : '../../../assets/jquery/1.11.1/jquery.min',
				'bootbox' : '../../../assets/jquery/bootbox.min',
				'ajaxSetup' : '../../../assets/js/core/ajaxSetup.r',
				'json' : '../../../assets/require/plugins/json',
				'JSON2' : '../../../assets/jquery/json2',
				'cookie' : '../../../assets/jquery/jquery.cookie',
				'bootstrap' : '../../../assets/bootstrap/3.3.7/js/bootstrap.min',
				'bs.table' : '../../../assets/bootstrap-table/bootstrap-table.min',
				'bs.table-CN' : '../../../assets/bootstrap-table/locale/bootstrap-table-zh-CN.min',
				'bs.validator' : '../../../assets/bootstrap-validator/js/bootstrapValidator.min',
				'bs.tree' : '../../../assets/boostrap-treeview/bootstrap-treeview.min',
				'knockout' : '../../../assets/knockout/knockout',
				'sco.msg' : '../../../assets/sco/js/sco.message',
				'canvas' : '../../../assets/bootstrap-fileinput-master/js/plugins/canvas-to-blob.min',
				'purify' : '../../../assets/bootstrap-fileinput-master/js/plugins/purify.min',
				'sortable' : '../../../assets/bootstrap-fileinput-master/js/plugins/sortable.min',
				'fileinput' : '../../../assets/bootstrap-fileinput-master/js/fileinput.min',
				'fileinput-zh' : '../../../assets/bootstrap-fileinput-master/js/locales/zh',
				'platform.common' : '../../../assets/js/core/platform.common',
				// private
				'barview' : 'module/barview',
				'formview' : 'module/formview',
				'gridview' : 'module/gridview',
				'titleview' : 'module/titleview',
				'methods' : 'module/methods'
			},
			shim : {
				'bootstrap' : [ 'jquery' ],
				'sco.msg' : [ 'jquery' ],
				'platform.common' : [ 'jquery', 'sco.msg', 'knockout', 'JSON2',
						'bootbox' ],
				'ajaxSetup' : [ 'jquery', 'platform.common' ],
				'bs.table' : [ 'bootstrap' ],
				'bs.tree' : [ 'bootstrap' ],
				'bs.validator' : [ 'jquery' ],
				'bs.table-CN' : [ 'bs.table' ],
				'fileinput' : [ 'canvas', 'purify', 'sortable', 'bootstrap',
						'jquery',
						'css!../../../assets/bootstrap-fileinput-master/css/fileinput.min.css' ],
				'fileinput-zh' : [ 'fileinput' ]
			},
			waitSeconds : 15
		});
require([ 'domReady!', 'jquery', 'knockout', 'platform.common', 'gridview',
		'formview', 'titleview', 'barview' ], function(doc, $, ko, platform,
		gridview, formview, titleview, barview) {
	platform.koBind(ko, gridview, 'attachmentGridView');
	platform.koBind(ko, formview, 'detailForm');
	platform.koBind(ko, titleview, 'modalHeader');
	platform.koBind(ko, barview, 'modalFooter');
	gridview.loadGrid();
});
